package com.acheli.registry.entity.render;

import com.acheli.registry.entity.ACHEntities;
import com.acheli.rideable.entites.RideableEntity;
import com.acheli.rideable.entites.ComponentEntity;
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.EntityRenderers;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

public class ACHEntitiesRenderBus {
    public static void init(FMLClientSetupEvent event) {
//        EntityRenderers.register(ACHEntities.RIDEABLE_ENTITY_TYPE.get(), CustomGeckolibRenderer::new);
        EntityRenderers.register(ACHEntities.RIDEABLE_ENTITY_TYPE.get(), new EntityRendererProvider<RideableEntity>() {
            @Override
            public EntityRenderer<RideableEntity> create(Context pContext) {
                return new RideableEntityRender(pContext);
            }
        });
        
        EntityRenderers.register(ACHEntities.RIDEABLE_COMPONENT_ENTITY_TYPE.get(), new EntityRendererProvider<ComponentEntity>() {
            @Override
            public EntityRenderer<ComponentEntity> create(Context pContext) {
                return new ComponentEntityRender(pContext);
            }
        });

    }
}
